home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / parser / parsesetupfile.c < prev    next >
C/C++ Source or Header  |  1996-07-28  |  450b  |  21 lines

  1.  
  2. #include "parser.p"
  3. #include "../../configure.h"
  4.  
  5. void parse_setupfile(void)
  6. {
  7.     char
  8.     *setup;
  9.  
  10.     if (!(yyin = fopen(setup = FIRSTSETUP, "r")))    /* open the setupfile */
  11.     if (!(yyin = fopen(setup = SECONDSETUP, "r")))    /* open the setupfile */
  12.         yyin = xfopen(setup = THIRDSETUP, "r");    /* open the setupfile */
  13.  
  14.     setbase(setup);
  15.  
  16.     yyparse();
  17.  
  18.     if ((parse_errors))                /* or semantic errrors */
  19.     error("Syntax error(s) in %s", setup);
  20. }
  21.